package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.User;

import java.util.Map;

public interface UserDao {
    public User findByUsername(String username);

    Page<User> findByCondition(String queryString);

    Integer[] findSelected(Integer userId);

    void deleteOld(Integer userId);
    void editRoles(Map<String, Integer> map);

    Integer findUserIdByUsername(String username);


    Integer[] findRoleIdsByUserId(int userId);

}
